// @ts-ignore
const { buildProjectFun } = require("./buildUtils");
const execSync = require("child_process").execSync;

execSync("git pull", { stdio: "inherit" });

// 判断当前是不是在prod分支上
const branch = execSync("git branch").toString();
if (!branch.includes("* master")) {
  throw new Error("请先切换到master 分支进行操作");
}
buildProjectFun("master");
